body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2em;
}

nav {
    margin-top: 0.5rem;
    background-color: #444;
    padding: 0.5rem 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: inline-block;
}

nav a:hover, nav a.active {
    background-color: #555;
    border-radius: 4px;
}

main {
    max-width: 960px;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

section:last-child {
    border-bottom: none;
}

h2 {
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
}

h3 {
    color: #444;
    margin-top: 1.5rem;
}

pre {
    background-color: #2d2d2d; /* Dark background for code */
    color: #ccc; /* Light grey text */
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto; /* Add scrollbars if code is too wide */
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
}

code.language-go {
    /* You can add more specific Go syntax highlighting styles here if needed */
    color: #9cdcfe; /* Example: Light blue for general code */
}
/* Example highlighting for comments and keywords (adjust as needed) */
code.language-go .comment { color: #6a9955; font-style: italic;}
code.language-go .keyword { color: #c586c0; } /* Pink/Purple for keywords */
code.language-go .string { color: #ce9178; } /* Orange/Brown for strings */
code.language-go .number { color: #b5cea8; } /* Light green for numbers */
code.language-go .function { color: #dcdcaa; } /* Yellow for function names */
code.language-go .type { color: #4ec9b0; }   /* Teal for types */


ul, ol {
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

p.highlight {
    background-color: #e8f4fd;
    border-left: 4px solid #50a1ff;
    padding: 0.8rem;
    border-radius: 4px;
}

.diagram-container {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden; /* Hide potential overflow from large diagrams */
}

.diagram {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below the object */
    margin: 0 auto;
}

/* Style for SVG hover effects (example) */
.diagram g:hover > path,
.diagram g:hover > rect,
.diagram g:hover > circle,
.diagram g:hover > ellipse,
.diagram g:hover > text {
   /* Example: Make slightly bolder or change stroke */
   /* stroke-width: 2px; */
   /* filter: brightness(1.1); */ /* Not widely supported, alternative needed */
   cursor: pointer; /* Indicate interactivity */
}


footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 0;
    background-color: #ddd;
    color: #333;
    font-size: 0.9em;
}